package com.adtec.base.cloud.persistence.system.model;

import com.adtec.base.cloud.persistence.common.BaseColumns;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * sys_user表对应的实体类
 *
 * @author 字母哥
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Schema(name = "用户模型")
public class SysUser extends BaseColumns {
    @Schema(name = "id--用户ID")
    private Long id;

    /**
     * 用户名
     */
    @Schema(name = "username--用户名")
    private String username;

    /**
     * 密码
     */
    @Schema(name = "password--密码")
    private String password;

    /**
     * 用户所属组织id
     */
    @Schema(name = "orgId--用户所属组织id")
    private Long orgId;

    /**
     * 0无效用户，1是有效用户
     */
    @Schema(name = "enabled--0无效用户，1是有效用户")
    private Boolean enabled;

    /**
     * 手机号
     */
    @Schema(name = "phone--手机号")
    private String phone;

    /**
     * email
     */
    @Schema(name = "email--邮箱")
    private String email;
}